<template>
    <div style="height:100%;width:100%;">
        <div class="alarm-container" style="margin:20px 0px;border-bottom:1px solid #e4e7ed;border-top:1px solid #e4e7ed;">
            <span>当前告警</span>
            <span><span class="el-icon-house" style="color:red;"></span> 严重告警 {{ severeAlarm }} 次</span>
            <span><span class="el-icon-house" style="color:rgb(210, 210, 5);"></span> 重要告警 {{ importantAlarm }} 次</span>
            <span><span class="el-icon-house" style="color:blue;"></span> 次要告警 {{ minorAlarm }} 次</span>
            <span><span class="el-icon-house" style="color:rgb(20, 237, 9);"></span> 提示告警 {{ hintAlarm }} 次</span>
        </div>
        <div style="height: 40px;width:100%;">
            <div style="border-bottom: 3px solid #e4e7ed;height: 40px;">
                <el-button>全部</el-button>
                <router-link to="/home/knowledge/wuJiC/wuJi5/wuJi7">
                    <el-button>硬件类</el-button>
                </router-link>
                <router-link to="/home/knowledge/wuJiC/wuJi5/wuJi8">
                    <el-button>软件类</el-button>
                </router-link>
                <el-button>文档类</el-button>
            </div>
        </div>
        <RouterView></RouterView>
    </div>
</template>


<script>
export default {
    data() {
        return {
            activeName: 'second',
            severeAlarm: 0,
            importantAlarm: 0,
            minorAlarm: 0,
            hintAlarm: 0,
        }
    },
    methods: {
        handleClick(tab, event) {
            console.log(tab, event);
        },
    }
}
</script>


<style scoped>
.el-main {
    color: #333;
}
.el-header {
    margin: 0;
    padding: 0;
}

.el-button {
    background-color: #f2f2f2;
}

.alarm-container span {
    display: inline-block;
    height: 50px;
    line-height: 50px;
    margin-left: 30px;
}
</style>